import * as types from './mutation_types'

export default {
  [types.SHOW_TIPS] (state, tips) {
    state.tips = tips.tips
  },
  [types.SET_USERINFO] (state, userInfo) {
    state.userInfo = userInfo.userInfo
  },
  [types.SET_GROUP] (state, group) {
    state.group = group.group
  },
  [types.SHOW_LOADING] (state) {
    state.showloading = true
  },
  [types.HIDE_LOADING] (state) {
    state.showloading = false
  }
}
